package jnpf.service;


import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.entity.MpMessageEntity;
import jnpf.exception.WxErrorException;
import jnpf.model.mpmessage.PaginationMpMessage;

import java.util.List;

/**
 * 公众号群发消息
 */
public interface MpMessageService extends IService<MpMessageEntity> {

    /**
     * 列表
     *
     * @param paginationMpMessage
     * @return
     */
    List<MpMessageEntity> getList(PaginationMpMessage paginationMpMessage);

    /**
     * 预览
     *
     * @param openId 公众号用户Id
     * @param entity 实体对象
     */
    void preview(String openId, MpMessageEntity entity) throws WxErrorException;

    /**
     * 根据标签进行群发(全部成员)
     *
     * @param entity 实体对象
     */
    void sendGroupMessageByTagId(MpMessageEntity entity) throws WxErrorException;
}
